.class Lcom/waiqin365/lightapp/im/utils/o;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field final synthetic a:Landroid/widget/PopupWindow;

.field final synthetic b:Lcom/waiqin365/lightapp/im/utils/URLSpanUtil;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/im/utils/URLSpanUtil;Landroid/widget/PopupWindow;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/im/utils/o;->b:Lcom/waiqin365/lightapp/im/utils/URLSpanUtil;

    iput-object p2, p0, Lcom/waiqin365/lightapp/im/utils/o;->a:Landroid/widget/PopupWindow;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 4

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    sparse-switch v0, :sswitch_data_0

    :goto_0
    :sswitch_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/utils/o;->a:Landroid/widget/PopupWindow;

    invoke-virtual {v0}, Landroid/widget/PopupWindow;->dismiss()V

    return-void

    :sswitch_1
    new-instance v0, Landroid/content/Intent;

    const-string/jumbo v1, "android.intent.action.INSERT"

    const-string/jumbo v2, "content://com.android.contacts"

    invoke-static {v2}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v2

    const-string/jumbo v3, "contacts"

    invoke-static {v2, v3}, Landroid/net/Uri;->withAppendedPath(Landroid/net/Uri;Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v2

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    const-string/jumbo v1, "vnd.android.cursor.dir/person"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->setType(Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v1, "vnd.android.cursor.dir/contact"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->setType(Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v1, "vnd.android.cursor.dir/raw_contact"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->setType(Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v1, "phone"

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/utils/o;->b:Lcom/waiqin365/lightapp/im/utils/URLSpanUtil;

    iget-object v2, v2, Lcom/waiqin365/lightapp/im/utils/URLSpanUtil;->c:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/utils/o;->b:Lcom/waiqin365/lightapp/im/utils/URLSpanUtil;

    iget-object v1, v1, Lcom/waiqin365/lightapp/im/utils/URLSpanUtil;->a:Landroid/content/Context;

    invoke-virtual {v1, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    goto :goto_0

    :sswitch_2
    new-instance v0, Landroid/content/Intent;

    const-string/jumbo v1, "android.intent.action.INSERT_OR_EDIT"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    const-string/jumbo v1, "vnd.android.cursor.item/person"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->setType(Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v1, "vnd.android.cursor.item/contact"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->setType(Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v1, "vnd.android.cursor.item/raw_contact"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->setType(Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v1, "phone"

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/utils/o;->b:Lcom/waiqin365/lightapp/im/utils/URLSpanUtil;

    iget-object v2, v2, Lcom/waiqin365/lightapp/im/utils/URLSpanUtil;->c:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/utils/o;->b:Lcom/waiqin365/lightapp/im/utils/URLSpanUtil;

    iget-object v1, v1, Lcom/waiqin365/lightapp/im/utils/URLSpanUtil;->a:Landroid/content/Context;

    invoke-virtual {v1, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    goto :goto_0

    nop

    :sswitch_data_0
    .sparse-switch
        0x7f0c0084 -> :sswitch_0
        0x7f0c03cb -> :sswitch_1
        0x7f0c03cc -> :sswitch_2
    .end sparse-switch
.end method
